package com.telit.android.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;


/**
 * 用户在线状态修改对象
 *
 * @author liuwei
 * @date 2021-10-17 15:16
 **/
@Data
@ToString
@ApiModel(value = "用户在线状态修改对象", description = "用户在线状态修改对象")
public class UserOnlineStatusDto implements Serializable {

    private static final long serialVersionUID = 5900560908743016695L;

    @ApiModelProperty(value = "用户id", required = true)
    @NotNull(message = "用户id不能为空!")
    @Min(value = 1, message = "用户id必须为正整数")
    private Long userId;

    @ApiModelProperty(value = "在线状态(0-离线 1-在线)", required = true)
    @NotNull(message = "在线状态不能为空!")
    @Min(value = 0, message = "在线状态必须为正整数")
    private Integer onlineStatus;

}
